<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>作废合同列表</title>
		<%@ include file="/include/resources.jsp" %>
	</head>
	<body>
		<script type="text/javascript" src="msi/contract/contract.js"></script>
		<script type="text/javascript">
			$(function(){
				var custId = $("#custId").val();
				$('#contractChannelList').datagrid({
					width : 660,
					pagination:true,
					url:"searchChannelContractList.do",
					queryParams:{"contract.custId":custId},
					onDblClickRow:function(rowIndex, rowData) {
						openChannelContractForm();
					}
				});		  
			});
		</script>
		<input type="hidden" name="custId" id="custId" value="<s:property value='customer.custId'/>"/>
		<div style="padding:5px;background:#fafafa;border-bottom:1px solid #eee;">
			<table cellpadding="0" cellspacing="0" style="width:100%">
				<tr>
					<td style="text-align:left">
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-open" onclick="javascript:openChannelContractForm();">打开</a>
					</td>
					<td style="text-align:right">
						<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="javascript:$('#contractChannelDialog').dialog('close')">关闭</a>
					</td>
				</tr>
			</table>
		</div>
		<div style="padding:10px;height: 340px">
			<table id="contractChannelList" idField="contractId" fit="true" singleSelect="true" pagination="true" rownumbers="true">
				<thead>
					<tr>
						<th field="contractId" hidden="true">合同ID</th>
						<th field="contractCode" width="130">合同编号</th>
						<th field="contractTitle" width="80">合同名称</th>
						<th field="custName" width="80">客户名称</th>
						<th field="signDate" width="80">签约日期</th>
						<th field="effectiveDate" width="80">生效日期</th>
						<th field="expirationDate" width="120" align="right">截止日期</th>
						<th field="contractDesc" width="80" align="right">内容描述</th>
						<th field="contractState" width="80" align="center">合同状态</th>
						<th field="contractVersion" width="80" align="center" >合同版本</th>
					</tr>
				</thead>
			</table>
		</div>
	</body>
</html>